<?php
     $id=$_REQUEST['id'];
	$con=mysqli_connect('localhost', 'root','', 'chongqinghuoguo110');
	if($con){
			mysqli_set_charset($con,'utf8');
			$sql="select * from dish where id='{$id}' ";
		$result=mysqli_query($con,$sql);
		$arr=mysqli_fetch_all($result,MYSQLI_ASSOC);
		$str=json_encode($arr);
		echo $str;
	}
	
	mysqli_close($con);
	
	
	
	
	?>